#-*- coding: utf -8 -*-

import sys

def frec(l1, x, n):
    if not n:
        return l1
    else:
        return [x] + frec(l1, x, n-1)


l2 = frec([], 'BU', 5)

print l2

